package com.l2jserver.gameserver.handler;

import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.RebirthManager;

public class BypassHandler
{
	private static BypassHandler _instance = null;
	
	private BypassHandler()
	{
		//Do Nothing ^_-
	}
	
	/** Receives the non-static instance of the RebirthManager.*/
	public static BypassHandler getInstance()
	{
		if (_instance == null)
		{
			_instance = new BypassHandler();
		}
		return _instance;
	}
	
	/** Handles player's Bypass request to the Custom Content. */
	public void handleBypass(L2PcInstance player, String command)
	{
		if (command.startsWith("custom_rebirth"))
		{//Rebirth Manager and Engine Caller
			RebirthManager.getInstance().handleCommand(player, command);
		}
	}
}
